package com.jeomo.mem.provider.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jeomo.common.core.request.BaseRequest;
import com.jeomo.mem.starter.entity.BaseMemberRule;

import javax.validation.constraints.*;

/**
 * 会员折扣规则
 * @author:Jackpot
 * @create 2020-09-09 14:30
 * @description:
 */
public class MemberDiscountRuleRequest extends BaseRequest {

    /** 规则编码*/
    private String code;
    /** 规则名称*/
    private String name;
    /** 折扣 (9.5 表示九五折) */
    @DecimalMin(value = "0.01")
    @DecimalMax(value = "10")
    private Double discount;
    /** 使用等级 */
    private String useLevels;
    @NotEmpty
    /** 使用等级:编码 */
    private String[] levelCodes;
    /** 使用等级:名称 */
    private String[] levelNames;
    @NotNull
    /** 使用范围*/
    private Integer useRange;
    /** 启用状态*/
    private Boolean startFlag = true;
    /** 备注*/
    private String memo;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public String getUseLevels() {
        return useLevels;
    }

    public void setUseLevels(String useLevels) {
        this.useLevels = useLevels;
    }

    public String[] getLevelCodes() {
        return levelCodes;
    }

    public void setLevelCodes(String[] levelCodes) {
        this.levelCodes = levelCodes;
    }

    public String[] getLevelNames() {
        return levelNames;
    }

    public void setLevelNames(String[] levelNames) {
        this.levelNames = levelNames;
    }

    public Integer getUseRange() {
        return useRange;
    }

    public void setUseRange(Integer useRange) {
        this.useRange = useRange;
    }

    public Boolean getStartFlag() {
        return startFlag;
    }

    public void setStartFlag(Boolean startFlag) {
        this.startFlag = startFlag;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
